import request from '@/utils/request'
// 获得学生管理分页
export function getStudentPage(query) {
  return request({
    url: '/member/student/page',
    method: 'post',
    data: query
  })
}
//  删除学生
export function deleteStudent(id) {
  return request({
    url: '/member/student/delete?id=' + id,
    method: 'delete'
  })
}
//  创建学生管理
export function createStudent(data) {
  return request({
    url: '/member/student/create',
    method: 'post',
    data: data
  })
}
// 更新学生
export function updateStudent(data) {
  return request({
    url: '/member/student/update',
    method: 'put',
    data: data
  })
}
//  获取学生信息
export function getStudentInfo(query) {
  return request({
    url: '/member/student/get',
    method: 'get',
    params: query
  })
}
//  根据学生id获得简历投递记录分页
export function getStudentRecord(query) {
  return request({
    url: '/member/curriculum-vitae-send-record/admin/getOperpageByStudent',
    method: 'post',
    data: query
  })
}
// 审核学生
export function checkStudent(data) {
  return request({
    url: '/member/student/examine',
    method: 'put',
    data: data
  })
}
// 获取简历列表
export function getUserResume(query) {
  return request({
    url: '/member/student-curriculum-vitae/page',
    method: 'post',
    data: query
  })
}
//  根据学生id，获取学生简历
export function getStudentResume(query) {
  return request({
    url: '/member/student-curriculum-vitae/getByStudentId',
    method: 'get',
    params: query
  })
}
